﻿using System;
using Autodesk.Revit.DB;

namespace YJKArch.ImportStructureProject.ImportObjects
{
	public class ColumnInfos : ObjectInfos
	{
		public XYZ LocationPoint
		{
			get
			{
				return this.m_LocationPoint;
			}
		}

		public double Rotation
		{
			get
			{
				return this.m_Rotation;
			}
		}

		public double Height
		{
			get
			{
				return this.m_Height;
			}
		}

		public PoleSectionStyle SectionStyle
		{
			get
			{
				return this.m_SectionStyle;
			}
		}

		public double B
		{
			get
			{
				return this.m_B;
			}
		}

		public double H
		{
			get
			{
				return this.m_H;
			}
		}

		public double BottomElevation
		{
			get
			{
				return this.m_LocationPoint.Z;
			}
		}

		public ColumnInfos(ColumnInfos rhs)
		{
			this.m_OldElementId = rhs.m_OldElementId;
			this.m_LocationPoint = rhs.m_LocationPoint;
			this.m_Rotation = rhs.m_Rotation;
			this.m_Height = rhs.m_Height;
			this.m_SectionStyle = rhs.m_SectionStyle;
			this.m_B = rhs.m_B;
			this.m_H = rhs.m_H;
		}

		public ColumnInfos(ElementId oldElementId, XYZ locationPoint, double rotation, double height, PoleSectionStyle sectionStyle, double b, double h)
		{
			this.m_OldElementId = oldElementId;
			this.m_LocationPoint = locationPoint;
			this.m_Rotation = rotation;
			this.m_Height = height;
			this.m_SectionStyle = sectionStyle;
			this.m_B = b;
			this.m_H = h;
		}

		private XYZ m_LocationPoint;

		private double m_Rotation;

		private double m_Height;

		private PoleSectionStyle m_SectionStyle;

		private double m_B;

		private double m_H;
	}
}
